<div>
    <ul class="_j_pager_box">

        <#list pageInfo.list as p>

        <#-- 热门话题 -->
            <li class="item clearfix " data-qid="10232660">
                <#-- 显示没有评论时的页面 -->
                <#if p.replyNum==0>

                    <li class="item clearfix _j_question_item" data-qid="18506594">
                        <div class="container">
                            <div class="avatar">
                                <a href="/wenda/u/129147/answer.html" target="_blank" class="_j_filter_click">
                                    <img class="_j_filter_click"
                                         src="${p.author.headImgUrl}"></a>
                            </div>
                            <div><a>${p.author.nickname}</a></div>
                            <div class="title">
                                <a href="/wenda/wendaDetail?id=${p.id}" class="_j_filter_click" target="_blank">${p.title}</a>
                            </div>
                            <#-- 问题的内容 -->
                            <div class="desc clearfix">
                                <p class="text-line-limit">${(p.wendaQuestionContent.content)!}</p>
                            </div>
                            <#-- 显示问题相关的标签数据-->
                            <div class="tags">
                                <#list p.tags as tag>
                                    <a class="a-tag _j_filter_click" href="/wenda/tag-1331.html" target="_blank">${tag.name}</a>
                                </#list>
                            </div>

                            <div class="operate">
                                <#--<div class="zan"><i></i>0</div>-->
                                <#--<div class="answer-side _js_answerAva">-->
                                <div class="zan">
                                    <a class="btn-ding  _j_support_btn" title="" data-aid="${(p.id)!}" data-tid="${(p.questionId)!}" href="javascript:;"><i></i><span class="a">${(p.thumbupnum)!}</span></a>
                                </div>

                                <script>
                                    //顶
                                    $("._j_support_btn").click(function(){
                                        console.log(1);
                                        var tid = $(this).data("tid");
                                        var aid = $(this).data("aid");
                                        $.get("/wenda/questionList",{tid:tid,aid:aid},function(data){
                                            if (data.success) {
                                                $(".a").html(data.data.thumbupnum);
                                                popup("顶成功啦");

                                            } else {
                                                if (data.code == 102) {
                                                    popup(data.msg);
                                                } else {
                                                    popup("今天你已经顶过了");
                                                }
                                            }
                                        })
                                    })
                                </script>


                                <div class="mdd">
                                    <a href="/wenda/area-12720.html" class="_j_filter_click" target="_blank">
                                        <i class="_j_filter_click"></i>${(p.dest.name)!}</a>
                                </div>

                                <a class="reply-wait _j_filter_click" href="/wenda/wendaDetail?id=${p.id}"
                                   target="_blank"><em><i></i>待回答</em></a>
                                <span class="browse">浏览 (${p.viewNum})</span>
                                <span class="date"><i></i>发布于${(p.replyTime?string("yyyy-MM-dd hh:mm:ss"))!}</span>
                            </div>
                        </div>
                    </li>

                <#else>
                    <#-- 评论数不为0时显示 -->
                    <div class="title">
                        <a href="/wenda/wendaDetail?id=${p.id}" target="_blank">${p.title}</a>
                    </div>

                    <#--<div class="container">
                        <div class="avatar">
                            <a href="/wenda/u/52861906/answer.html" target="_blank" class="_j_filter_click">
                                <img class="_j_filter_click"  src="${(p.firstAnswer.author.headImgUrl)!}">
                            </a>
                        </div>
                        &lt;#&ndash; 回答人信息 &ndash;&gt;
                        <div class="user-info">
                            <a class="name _j_filter_click" href="/wenda/u/52861906/answer.html"
                               target="_blank">${(p.firstAnswer.author.nickname)!}</a>
                            <a class="level _j_filter_click" href="/rank/lv.php?uid=52861906" target="_blank"
                               rel="nofollow">LV.${(p.firstAnswer.author.level)!}</a>
                        </div>
                        &lt;#&ndash; 答案的内容 &ndash;&gt;
                        <div class="desc clearfix">
                            <a href="/wenda/detail?id=${p.id}" target="_blank" style="color: #666;">
                                <img src="${(p.firstAnswer.coverUrl)!}"
                                     width="150" height="100">
                                <p class="text-line-limit">${(p.firstAnswer.summary)!}</p>
                            </a>
                        </div>-->

                        <#-- 显示问题相关的标签数据-->
                        <div class="tags">
                            <#list p.tags as tag>
                                <a class="a-tag _j_filter_click" href="/wenda/tag-1331.html" target="_blank">${tag.name}</a>
                            </#list>
                        </div>

                        <#-- -->
                        <#--<div class="operate">
                            <div class="zan"><i></i>${(p.firstAnswer.thumbupnum)!}</div>
                            <div class="mdd">
                                <a href="/wenda/area-187613.html" class="_j_filter_click"
                                   target="_blank"><i class="_j_filter_click"></i>${(p.dest.name)!'全球'}</a></div>


                            <a href="/wenda/detail?id=${p.id}" target="_blank"
                               style="text-decoration: none;">
                                <span class="reply">评论 (${p.replyNum})</span>
                            </a>
                            <span class="date">发布于${(p.replyTime?string("yyyy-MM-dd hh:mm:ss"))!}</span>
                        </div>-->
                    </div>
                </#if>

            </li>
        </#list>
    </ul>
</div>
<#include "../common/page.ftl">



